class DepositosController < ApplicationController
  
  cache_sweeper :state_sweeper
  
  active_scaffold :deposito do |config|
    config.label = "Depositos"

    config.create.columns = [:nome, :qtbox, :cor]
    config.update.columns = [:nome, :qtbox, :cor]
    config.list.columns = [:nome, :qtbox, :cor]

    config.theme = :blue
    config.columns[:nome].description = "NOME"
	  config.columns[:cor].description = "COR"
    config.columns[:qtbox].description = "QTBOX"

    config.columns[:nome].label = "NOME"
	  config.columns[:cor].label = "COR"
    config.columns[:qtbox].label = "QTBOX"

    config.list.sorting = [{:id => 'DESC'}]

    config.list.per_page = Setting.new.qtd_porpagina

    config.create.link.label = "NOVO"
    config.search.link.label = "BUSCA"
    config.update.link.label = "E"
    config.show.link.label = "S"
    config.delete.link.label = "D"
    config.delete.link.confirm = "Apagar?"
    config.actions.exclude :search
  end
end
